package com.scwatch.core.fulltext;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.Special;
import com.scwatch.core.service.TaskService;
import org.apache.lucene.search.Sort;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * SpecialFulltextService
 * 
 * @author gjl
 * 
 */
public interface SpecialFulltextService {
	public List<Special> list(Integer[] siteIds,
                              Integer[] excludeId,Integer[] includeId,String title,
                              Integer fragmentSize, Limitable limitable,
                              Sort sort);

	public Page<Special> page(Integer[] siteIds,
                           Integer[] excludeId,Integer[] includeId,String title,
                           Integer fragmentSize, Pageable pageable, Sort sort);

	public void addDocument(Integer specId);

	public void updateDocument(Integer specId);

	public int addDocument(Integer siteId,TaskService taskService, Integer taskId);
}
